package com.cskaoyan.bean;

import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class MallAdmin {
    private Integer id;

    private String username;

    private String password;

    private String lastLoginIp;

    private Date lastLoginTime;

    private String avatar;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;

    //MyBatis的TypeHandler 类型处理器

    //查询：输出映射 String 👉 Integer[]
    //数据库：varchar 👉 Java Type：String 👉 需要的类型：Integer[]
    //private String roleIds;

    //insert：输入映射 Integer[] 👉 String
    //提供的值 Integer[] 👉 转换为String 👉 数据库varchar
    private Integer[] roleIds;
    //private List<Integer> roleIds;

}